package com.donger.business.cms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * cms分类(CmsCategory)表实体类
 *
 * @author somliy
 * @since 2020-05-07 19:03:31
 */
@Data
@TableName
public class CmsCategory implements Serializable {

    private static final long serialVersionUID = -1; 
    
        
    /**id*/
    @TableId(value = "id")
    private Long categoryId;
        
    /**名称*/
    private String name;
        
    /**描述*/
    private String description;
        
    /**父级id*/
    private Long parentId;
        
    /**别名*/
    private String nickName;

    /**
     * 文章数量
     */
    @TableField(exist = false)
    private String postNum;

    /**
     * 上级菜单名称
     */
    @TableField(exist = false)
    private String parentName;
    /**
     * 子分类
     */
    @TableField(exist = false)
    private List<CmsCategory> children;
}